package com.infore.dataAudit.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.infore.dataAudit.remote.impl.ReceiveDataServiceFallbackFactory;
import com.infore.dataAudit.util.ResultEntity;


@FeignClient(name = "DataReceiving-Service", url="localhost:61001/DataReceiving-Service/",
                fallbackFactory = ReceiveDataServiceFallbackFactory.class)
public interface IReceiveDataService {
    
    @RequestMapping(value = "queryHourData", method = RequestMethod.GET)
    ResultEntity queryHourData(@RequestParam(value = "beginTime")String beginTime,
            @RequestParam(value = "endTime")String endTime);
}
